﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Vit.Web.Models;
using System.Web;

namespace Vit.Web.Providers
{
    public interface IPortalProvider : Vit.Common.IProvider
    {
        bool AddPortal(Portal portal);
        Portal GetPortal(string portalId);
        Portal GetCurrentPortal();

        bool AddSite(Portal portal, WebSite site);
        bool UpdateSite(Portal portal, WebSite site);
        bool RemoveSite(Portal portal, string siteId);

        WebPage GetPageByUrl(WebSite site, string url);
        WebPage GetPageByName(WebSite site, string name);
    }
}
